Skip to content

ci: verify generated agent/skill files stay in sync with their sources#57

Open
YAMRAJ13y wants to merge 1 commit into
JCodesMore:masterfrom
YAMRAJ13y:ci/check-generated-files-in-sync
Open

ci: verify generated agent/skill files stay in sync with their sources#57
YAMRAJ13y wants to merge 1 commit into
JCodesMore:masterfrom
YAMRAJ13y:ci/check-generated-files-in-sync

Conversation

@YAMRAJ13y

@YAMRAJ13y YAMRAJ13y commented Jun 24, 2026

Copy link
Copy Markdown

AGENTS.md asks contributors to re-run the sync scripts after editing a source file, but nothing actually enforces it. It's easy to edit AGENTS.md or the clone-website SKILL.md and forget to regenerate, which quietly drifts the 13 generated platform files (Cursor, Windsurf, Gemini, Codex, Copilot, Amazon Q, Continue, Cline, OpenCode, Augment) from their source. Right now CI only runs lint/typecheck/build, so that slips through.

This adds a small sync job that re-runs both sync scripts and fails if the working tree comes back dirty, with a message pointing at the fix:

::error::Generated files are out of sync with their sources (AGENTS.md / SKILL.md).
Run the sync scripts locally and commit the result:
  bash scripts/sync-agent-rules.sh
  node scripts/sync-skills.mjs

It runs as a separate job so it doesn't slow the existing one down, and it's a no-op when things are already in sync (the scripts are deterministic — checked there's no diff on a clean master).

AGENTS.md tells contributors to re-run the sync scripts after editing a
source file, but nothing actually enforces it, so it's easy to edit
AGENTS.md or the clone-website SKILL.md and forget to regenerate - which
silently drifts the 13 committed platform copies from their source.

Adds a small CI job that re-runs both sync scripts and fails if the working
tree comes back dirty, with a message telling you which command to run. It
runs as a separate job so it doesn't slow the existing lint/typecheck/build
job, and it's a no-op for branches that are already in sync.
@YAMRAJ13y YAMRAJ13y force-pushed the ci/check-generated-files-in-sync branch from 65bfdfd to 1cbba59 Compare June 30, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant